package com.igeekhome.pojo;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class FCashExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public FCashExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andWaybillIdIsNull() {
            addCriterion("waybill_id is null");
            return (Criteria) this;
        }

        public Criteria andWaybillIdIsNotNull() {
            addCriterion("waybill_id is not null");
            return (Criteria) this;
        }

        public Criteria andWaybillIdEqualTo(Integer value) {
            addCriterion("waybill_id =", value, "waybillId");
            return (Criteria) this;
        }

        public Criteria andWaybillIdNotEqualTo(Integer value) {
            addCriterion("waybill_id <>", value, "waybillId");
            return (Criteria) this;
        }

        public Criteria andWaybillIdGreaterThan(Integer value) {
            addCriterion("waybill_id >", value, "waybillId");
            return (Criteria) this;
        }

        public Criteria andWaybillIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("waybill_id >=", value, "waybillId");
            return (Criteria) this;
        }

        public Criteria andWaybillIdLessThan(Integer value) {
            addCriterion("waybill_id <", value, "waybillId");
            return (Criteria) this;
        }

        public Criteria andWaybillIdLessThanOrEqualTo(Integer value) {
            addCriterion("waybill_id <=", value, "waybillId");
            return (Criteria) this;
        }

        public Criteria andWaybillIdIn(List<Integer> values) {
            addCriterion("waybill_id in", values, "waybillId");
            return (Criteria) this;
        }

        public Criteria andWaybillIdNotIn(List<Integer> values) {
            addCriterion("waybill_id not in", values, "waybillId");
            return (Criteria) this;
        }

        public Criteria andWaybillIdBetween(Integer value1, Integer value2) {
            addCriterion("waybill_id between", value1, value2, "waybillId");
            return (Criteria) this;
        }

        public Criteria andWaybillIdNotBetween(Integer value1, Integer value2) {
            addCriterion("waybill_id not between", value1, value2, "waybillId");
            return (Criteria) this;
        }

        public Criteria andCollectionTimeIsNull() {
            addCriterion("collection_time is null");
            return (Criteria) this;
        }

        public Criteria andCollectionTimeIsNotNull() {
            addCriterion("collection_time is not null");
            return (Criteria) this;
        }

        public Criteria andCollectionTimeEqualTo(Date value) {
            addCriterion("collection_time =", value, "collectionTime");
            return (Criteria) this;
        }

        public Criteria andCollectionTimeNotEqualTo(Date value) {
            addCriterion("collection_time <>", value, "collectionTime");
            return (Criteria) this;
        }

        public Criteria andCollectionTimeGreaterThan(Date value) {
            addCriterion("collection_time >", value, "collectionTime");
            return (Criteria) this;
        }

        public Criteria andCollectionTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("collection_time >=", value, "collectionTime");
            return (Criteria) this;
        }

        public Criteria andCollectionTimeLessThan(Date value) {
            addCriterion("collection_time <", value, "collectionTime");
            return (Criteria) this;
        }

        public Criteria andCollectionTimeLessThanOrEqualTo(Date value) {
            addCriterion("collection_time <=", value, "collectionTime");
            return (Criteria) this;
        }

        public Criteria andCollectionTimeIn(List<Date> values) {
            addCriterion("collection_time in", values, "collectionTime");
            return (Criteria) this;
        }

        public Criteria andCollectionTimeNotIn(List<Date> values) {
            addCriterion("collection_time not in", values, "collectionTime");
            return (Criteria) this;
        }

        public Criteria andCollectionTimeBetween(Date value1, Date value2) {
            addCriterion("collection_time between", value1, value2, "collectionTime");
            return (Criteria) this;
        }

        public Criteria andCollectionTimeNotBetween(Date value1, Date value2) {
            addCriterion("collection_time not between", value1, value2, "collectionTime");
            return (Criteria) this;
        }

        public Criteria andPaymentStaffIdIsNull() {
            addCriterion("payment_staff_id is null");
            return (Criteria) this;
        }

        public Criteria andPaymentStaffIdIsNotNull() {
            addCriterion("payment_staff_id is not null");
            return (Criteria) this;
        }

        public Criteria andPaymentStaffIdEqualTo(Integer value) {
            addCriterion("payment_staff_id =", value, "paymentStaffId");
            return (Criteria) this;
        }

        public Criteria andPaymentStaffIdNotEqualTo(Integer value) {
            addCriterion("payment_staff_id <>", value, "paymentStaffId");
            return (Criteria) this;
        }

        public Criteria andPaymentStaffIdGreaterThan(Integer value) {
            addCriterion("payment_staff_id >", value, "paymentStaffId");
            return (Criteria) this;
        }

        public Criteria andPaymentStaffIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("payment_staff_id >=", value, "paymentStaffId");
            return (Criteria) this;
        }

        public Criteria andPaymentStaffIdLessThan(Integer value) {
            addCriterion("payment_staff_id <", value, "paymentStaffId");
            return (Criteria) this;
        }

        public Criteria andPaymentStaffIdLessThanOrEqualTo(Integer value) {
            addCriterion("payment_staff_id <=", value, "paymentStaffId");
            return (Criteria) this;
        }

        public Criteria andPaymentStaffIdIn(List<Integer> values) {
            addCriterion("payment_staff_id in", values, "paymentStaffId");
            return (Criteria) this;
        }

        public Criteria andPaymentStaffIdNotIn(List<Integer> values) {
            addCriterion("payment_staff_id not in", values, "paymentStaffId");
            return (Criteria) this;
        }

        public Criteria andPaymentStaffIdBetween(Integer value1, Integer value2) {
            addCriterion("payment_staff_id between", value1, value2, "paymentStaffId");
            return (Criteria) this;
        }

        public Criteria andPaymentStaffIdNotBetween(Integer value1, Integer value2) {
            addCriterion("payment_staff_id not between", value1, value2, "paymentStaffId");
            return (Criteria) this;
        }

        public Criteria andCollectionStaffIdIsNull() {
            addCriterion("collection_staff_id is null");
            return (Criteria) this;
        }

        public Criteria andCollectionStaffIdIsNotNull() {
            addCriterion("collection_staff_id is not null");
            return (Criteria) this;
        }

        public Criteria andCollectionStaffIdEqualTo(Integer value) {
            addCriterion("collection_staff_id =", value, "collectionStaffId");
            return (Criteria) this;
        }

        public Criteria andCollectionStaffIdNotEqualTo(Integer value) {
            addCriterion("collection_staff_id <>", value, "collectionStaffId");
            return (Criteria) this;
        }

        public Criteria andCollectionStaffIdGreaterThan(Integer value) {
            addCriterion("collection_staff_id >", value, "collectionStaffId");
            return (Criteria) this;
        }

        public Criteria andCollectionStaffIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("collection_staff_id >=", value, "collectionStaffId");
            return (Criteria) this;
        }

        public Criteria andCollectionStaffIdLessThan(Integer value) {
            addCriterion("collection_staff_id <", value, "collectionStaffId");
            return (Criteria) this;
        }

        public Criteria andCollectionStaffIdLessThanOrEqualTo(Integer value) {
            addCriterion("collection_staff_id <=", value, "collectionStaffId");
            return (Criteria) this;
        }

        public Criteria andCollectionStaffIdIn(List<Integer> values) {
            addCriterion("collection_staff_id in", values, "collectionStaffId");
            return (Criteria) this;
        }

        public Criteria andCollectionStaffIdNotIn(List<Integer> values) {
            addCriterion("collection_staff_id not in", values, "collectionStaffId");
            return (Criteria) this;
        }

        public Criteria andCollectionStaffIdBetween(Integer value1, Integer value2) {
            addCriterion("collection_staff_id between", value1, value2, "collectionStaffId");
            return (Criteria) this;
        }

        public Criteria andCollectionStaffIdNotBetween(Integer value1, Integer value2) {
            addCriterion("collection_staff_id not between", value1, value2, "collectionStaffId");
            return (Criteria) this;
        }

        public Criteria andCollectionTypeIdIsNull() {
            addCriterion("collection_type_id is null");
            return (Criteria) this;
        }

        public Criteria andCollectionTypeIdIsNotNull() {
            addCriterion("collection_type_id is not null");
            return (Criteria) this;
        }

        public Criteria andCollectionTypeIdEqualTo(Integer value) {
            addCriterion("collection_type_id =", value, "collectionTypeId");
            return (Criteria) this;
        }

        public Criteria andCollectionTypeIdNotEqualTo(Integer value) {
            addCriterion("collection_type_id <>", value, "collectionTypeId");
            return (Criteria) this;
        }

        public Criteria andCollectionTypeIdGreaterThan(Integer value) {
            addCriterion("collection_type_id >", value, "collectionTypeId");
            return (Criteria) this;
        }

        public Criteria andCollectionTypeIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("collection_type_id >=", value, "collectionTypeId");
            return (Criteria) this;
        }

        public Criteria andCollectionTypeIdLessThan(Integer value) {
            addCriterion("collection_type_id <", value, "collectionTypeId");
            return (Criteria) this;
        }

        public Criteria andCollectionTypeIdLessThanOrEqualTo(Integer value) {
            addCriterion("collection_type_id <=", value, "collectionTypeId");
            return (Criteria) this;
        }

        public Criteria andCollectionTypeIdIn(List<Integer> values) {
            addCriterion("collection_type_id in", values, "collectionTypeId");
            return (Criteria) this;
        }

        public Criteria andCollectionTypeIdNotIn(List<Integer> values) {
            addCriterion("collection_type_id not in", values, "collectionTypeId");
            return (Criteria) this;
        }

        public Criteria andCollectionTypeIdBetween(Integer value1, Integer value2) {
            addCriterion("collection_type_id between", value1, value2, "collectionTypeId");
            return (Criteria) this;
        }

        public Criteria andCollectionTypeIdNotBetween(Integer value1, Integer value2) {
            addCriterion("collection_type_id not between", value1, value2, "collectionTypeId");
            return (Criteria) this;
        }

        public Criteria andCollectionMoneyIsNull() {
            addCriterion("collection_money is null");
            return (Criteria) this;
        }

        public Criteria andCollectionMoneyIsNotNull() {
            addCriterion("collection_money is not null");
            return (Criteria) this;
        }

        public Criteria andCollectionMoneyEqualTo(BigDecimal value) {
            addCriterion("collection_money =", value, "collectionMoney");
            return (Criteria) this;
        }

        public Criteria andCollectionMoneyNotEqualTo(BigDecimal value) {
            addCriterion("collection_money <>", value, "collectionMoney");
            return (Criteria) this;
        }

        public Criteria andCollectionMoneyGreaterThan(BigDecimal value) {
            addCriterion("collection_money >", value, "collectionMoney");
            return (Criteria) this;
        }

        public Criteria andCollectionMoneyGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("collection_money >=", value, "collectionMoney");
            return (Criteria) this;
        }

        public Criteria andCollectionMoneyLessThan(BigDecimal value) {
            addCriterion("collection_money <", value, "collectionMoney");
            return (Criteria) this;
        }

        public Criteria andCollectionMoneyLessThanOrEqualTo(BigDecimal value) {
            addCriterion("collection_money <=", value, "collectionMoney");
            return (Criteria) this;
        }

        public Criteria andCollectionMoneyIn(List<BigDecimal> values) {
            addCriterion("collection_money in", values, "collectionMoney");
            return (Criteria) this;
        }

        public Criteria andCollectionMoneyNotIn(List<BigDecimal> values) {
            addCriterion("collection_money not in", values, "collectionMoney");
            return (Criteria) this;
        }

        public Criteria andCollectionMoneyBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("collection_money between", value1, value2, "collectionMoney");
            return (Criteria) this;
        }

        public Criteria andCollectionMoneyNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("collection_money not between", value1, value2, "collectionMoney");
            return (Criteria) this;
        }

        public Criteria andRemarkIsNull() {
            addCriterion("remark is null");
            return (Criteria) this;
        }

        public Criteria andRemarkIsNotNull() {
            addCriterion("remark is not null");
            return (Criteria) this;
        }

        public Criteria andRemarkEqualTo(String value) {
            addCriterion("remark =", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotEqualTo(String value) {
            addCriterion("remark <>", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkGreaterThan(String value) {
            addCriterion("remark >", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkGreaterThanOrEqualTo(String value) {
            addCriterion("remark >=", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLessThan(String value) {
            addCriterion("remark <", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLessThanOrEqualTo(String value) {
            addCriterion("remark <=", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLike(String value) {
            addCriterion("remark like", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotLike(String value) {
            addCriterion("remark not like", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkIn(List<String> values) {
            addCriterion("remark in", values, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotIn(List<String> values) {
            addCriterion("remark not in", values, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkBetween(String value1, String value2) {
            addCriterion("remark between", value1, value2, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotBetween(String value1, String value2) {
            addCriterion("remark not between", value1, value2, "remark");
            return (Criteria) this;
        }

        public Criteria andRegistTimeIsNull() {
            addCriterion("regist_time is null");
            return (Criteria) this;
        }

        public Criteria andRegistTimeIsNotNull() {
            addCriterion("regist_time is not null");
            return (Criteria) this;
        }

        public Criteria andRegistTimeEqualTo(Date value) {
            addCriterion("regist_time =", value, "registTime");
            return (Criteria) this;
        }

        public Criteria andRegistTimeNotEqualTo(Date value) {
            addCriterion("regist_time <>", value, "registTime");
            return (Criteria) this;
        }

        public Criteria andRegistTimeGreaterThan(Date value) {
            addCriterion("regist_time >", value, "registTime");
            return (Criteria) this;
        }

        public Criteria andRegistTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("regist_time >=", value, "registTime");
            return (Criteria) this;
        }

        public Criteria andRegistTimeLessThan(Date value) {
            addCriterion("regist_time <", value, "registTime");
            return (Criteria) this;
        }

        public Criteria andRegistTimeLessThanOrEqualTo(Date value) {
            addCriterion("regist_time <=", value, "registTime");
            return (Criteria) this;
        }

        public Criteria andRegistTimeIn(List<Date> values) {
            addCriterion("regist_time in", values, "registTime");
            return (Criteria) this;
        }

        public Criteria andRegistTimeNotIn(List<Date> values) {
            addCriterion("regist_time not in", values, "registTime");
            return (Criteria) this;
        }

        public Criteria andRegistTimeBetween(Date value1, Date value2) {
            addCriterion("regist_time between", value1, value2, "registTime");
            return (Criteria) this;
        }

        public Criteria andRegistTimeNotBetween(Date value1, Date value2) {
            addCriterion("regist_time not between", value1, value2, "registTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("update_time is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("update_time is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterion("update_time =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterion("update_time <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterion("update_time >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("update_time >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterion("update_time <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("update_time <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterion("update_time in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterion("update_time not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("update_time between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("update_time not between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("status is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("status is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(Integer value) {
            addCriterion("status =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(Integer value) {
            addCriterion("status <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(Integer value) {
            addCriterion("status >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("status >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(Integer value) {
            addCriterion("status <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(Integer value) {
            addCriterion("status <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<Integer> values) {
            addCriterion("status in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<Integer> values) {
            addCriterion("status not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(Integer value1, Integer value2) {
            addCriterion("status between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("status not between", value1, value2, "status");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}